package trainingcamp.day01.arraytest;

public class 存储扑克牌_01 {
    public static void main(String[] args) {
        String[] array = new String[54];
        String[] content ={"2","3","4","5","6","7","8","9","10","J","Q","K","A"};
        for(int i = 0;i < array.length-2;i++){
            if(i < 13){
                //2-10
                array[i] = "黑桃"+content[i];
            }else if(13 <= i && i<26){
                int a = i%13;
                array[i] = "红桃"+content[a];
            }else if(26 <= i && i<39){
                int a = i%13;
                array[i] = "方块"+content[a];
            }else if(39 <= i && i<52){
                int a = i%13;
                array[i] = "梅花"+content[a];
            }
        }
        array[52] = "小王";
        array[53] = "大王";
        for(int i = 0;i < array.length;i++){
            System.out.println(array[i]);
        }
    }
}
